package indi.gao.redis;

import java.io.File;

/**
 * <p>Description:</p> 得到父亲文件下的名字
 * <p>Copyright: Copyright (c)2019$</p>
 * <p>Company: Tope</p>
 * <P>Created Date :2019$-09$-23$</P>
 * <P>@version 1.0</P>
 */
public class GetFileNameList {
    public static void main(String[] args) {
        String picDir = "C:\\Users\\DELL\\Desktop\\新建文件夹\\给技术的表格";
        File file = new File(picDir);
        StringBuilder stringBuilder = new StringBuilder();
        //得到文件夹下的文件夹的名字
        String[] dirNames = file.list();
        for (String dirName : dirNames) {
            stringBuilder.append("\"").append(dirName).append("\",");
        }
        System.out.println(stringBuilder.toString());
    }
}
